package com.cloudkinto.service.template;

import com.cloudkinto.entity.ContainerTemplateDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.template.vo.ContainerTemplateAddReq;
import com.cloudkinto.service.template.vo.ContainerTemplateDetailRes;
import com.cloudkinto.service.template.vo.ContainerTemplatePageRes;
import com.cloudkinto.service.template.vo.ContainerTemplateUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author zhangyy
 * @since 2020-10-26
 */
public interface ContainerTemplateService extends IService<ContainerTemplateDo> {


    void add(ContainerTemplateAddReq req, Long userId);

    SingleResult updateInit(Long id);

    ContainerTemplateUpdateReq update(ContainerTemplateUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    ContainerTemplateDetailRes detail(Long id);

    SingleResult pageInit();

    List<ContainerTemplatePageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
